﻿using System.ServiceModel;
using System.ServiceModel.Web;

namespace WCFDojoRpc
{
    [ServiceContract(Namespace = "http://mymemoryleaks.blogspot.com/2009/04/WCFDOJORPC")]
    public interface IClockService
    {
        [OperationContract]
        [WebInvoke(Method = "POST",  ResponseFormat = WebMessageFormat.Json)]
        string GetTime();

        [OperationContract]
        [WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json)]
        string GetLocalTime(string cultureName);
    }
}
